package com.bristua.barcode.supplier.controller;

import com.bristua.barcode.common.bean.Result;
import com.bristua.barcode.common.util.HandleResultUtil;
import com.bristua.barcode.supplier.biz.QueryChannelRequestConfigBiz;
import com.bristua.barcode.supplier.biz.QueryQrCodeCookieDetailBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/9/6.
 */
@RestController
public class QueryChannelRequestConfigController {

    @Autowired
    private QueryChannelRequestConfigBiz queryChannelRequestConfigBiz;

    @PostMapping(value = "/query/channel/request/{channelId}")
    public Result queryChannelRequestConfig(@PathVariable(value = "channelId") String channelId){
        return HandleResultUtil.querySuccessResult(queryChannelRequestConfigBiz.queryChannelRequestConfig(channelId));
    }
}
